.component-login-popup {
  background-color: rgba(0,0,0,0.2);
  /* 使用固定定位让元素撑满全屏 */
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .login-box {
    position: relative;
    z-index: 10000;
    background: #fff;
    padding: 10px 10px 50px;
    .close {
      position: absolute;
      right: 10px;
      top: 10px;
      width: 20px;
      height: 20px;
      background: url(@/assets/images/icons.png) no-repeat 4px -228px;
      cursor: pointer;
    }
    .login-header {
      margin-top: 20px;
      padding: 0 20px;
      display: flex;
      width: 316px;
      .item {
        flex: 1;
        text-align: center;
        font-size: 18px;
        color: #666;
        cursor: pointer;
        position: relative;
        &:first-child {
          padding: 10px;
          &::after {
            position: absolute;
            right: 0;
            top: 12px;
            bottom: 12px;
            width: 1px;
            height: auto;
            display: block;
            content: " ";
            font-size: 0;
            background: #eee;
          }
        }
        &:last-child {
          padding: 10px;
        }
      }
      .item.active {
        color: #e1251b;
      }
    }
    .login-con {
      padding: 40px 30px;
      .item {
        position: relative;
        margin-top: 15px;
        border-radius: 2px;
        &:first-child {
          margin-top: 0;
        }
        .icon {
          position: absolute;
          left: 0;
          top: 1px;
          width: 44px;
          text-align: center;
          height: 34px;
          &::before {
            position: absolute;
            top: 8px;
            left: 15px;
            display: block;
            width: 14px;
            height: 18px;
            content: " ";
            background: url(@/assets/images/icons.png) no-repeat;
          }
        }
        .input {
          border: 1px solid #e8e8e8;
          width: 206px;
          height: 34px;
          padding: 0 44px;
        }
      }
      .item.phone {
        .icon {
          &::before {
            background-position: -38px -513px;
          }
        }
      }
      .item.account {
        .icon {
          &::before {
            background-position: 0 -513px;
          }
        }
      }
      .item.code {
        .icon {
          &::before {
            background-position: -19px -513px;
          }
        }
        .input {
          padding-right: 10px;
          width: 100px;
        }
      }
      .item.password {
        .icon {
          &::before {
            background-position: -19px -513px;
          }
        }
      }
      .cancel {
        position: absolute;
        right: 0;
        top: 1px;
        width: 44px;
        height: 34px;
        cursor: pointer;
        &::before {
          position: absolute;
          top: 9px;
          left: 14px;
          display: block;
          width: 16px;
          height: 16px;
          content: " ";
          background: url(@/assets/images/icons.png) no-repeat -56px -515px;
        }
      }
      .send-code {
        position: absolute;
        right: 0;
        top: 0;
        background: #f9f9f9;
        border: 1px solid #eee;
        border-left: 0;
        width: 89px;
        height: 34px;
        line-height: 34px;
        text-align: center;
        &:hover {
          color: #e1251b;
        }
      }
      .msg-error {
        .input {
          border-color: #e1251b;
        }
      }
      .error {
        margin-top: 10px;
        padding-left: 23px;
        position: relative;
        color: #e1251b;
        height: 16px;
        line-height: 16px;
        &::before {
          position: absolute;
          left: 2px;
          top: 1px;
          display: block;
          width: 14px;
          height: 14px;
          content: " ";
          background: url(@/assets/images/icons.png) no-repeat -77px -517px;
        }
      }

      .login-button {
        display: block;
        margin-top: 35px;
        background: #e1251b;
        color: #fff;
        text-align: center;
        border-radius: 2px;
        height: 48px;
        line-height: 48px;
        font-size: 18px;
        letter-spacing: 5px;
        &:hover {
          opacity: 0.9;
        }
      }
      .agree-box {
        display: flex;
        align-items: flex-start;
        margin-top: 10px;
        font-size: 12px;
        line-height: 15px;
        .text {
          color: #999;
          .agreement {
            color: #000;
            &:hover {
              text-decoration: underline;
            }
          }
        }
      }
      .agree-box-en {
        width: 290px !important;
        line-height: 20px !important;
        &:deep(.el-checkbox) {
          padding-top: 3px;
        }
      }
      &:deep(.el-checkbox) {
        height: 14px;
        margin-right: 5px;
      }
      &:deep(.el-checkbox__input.is-checked) {
        .el-checkbox__inner {
          background-color: #e1251b;
          border-color: #e1251b;
        }
      }
      &:deep(.el-checkbox__input) {
        .el-checkbox__inner {
          &:hover{
            border-color: #e1251b;
          }
        }
      }
    }
    .login-footer {
      height: 51px;
      background: #fcfcfc;
      border-top: 1px solid #eee;
      position: absolute;
      width: 100%;
      bottom: 0;
      left: 0;
      display: flex;
      padding: 0 32px;
      box-sizing: border-box;
      .footer-a {
        display: block;
        line-height: 50px;
        margin-right: 10px;
        color: #999;
        &:hover {
          color: #000;
        }
      }
    }
  }
}
